package com.management.service.Impl;

import com.management.dao.FormStatsDao;
import com.management.po.FormStats;
import com.management.service.FormStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author XS
 * 状态类的业务逻辑实现类
 * @version 1.0
 */
@Service
public class FormStatsServiceImpl implements FormStatsService {
    @Autowired
    FormStatsDao formStatsDao;

    @Override
    public List<FormStats> findAll() {
        return formStatsDao.findAll();
    }

    @Override
    public FormStats findByFormStatsId(int FormStatsId) {
        return formStatsDao.findByFormStatsId(FormStatsId);
    }

    @Override
    public boolean add(FormStats formStats) {
        return formStatsDao.add(formStats)>0?true:false;
    }

    @Override
    public boolean update(FormStats formStats) {
        return formStatsDao.update(formStats)>0?true:false;
    }
}
